
#ifndef NETSERVER_H
#define NETSERVER_H

#include <QStringList>
#include <QTcpServer>
#include "netthread.h"

class QLabel;

//! [0]
class NETServer : public QTcpServer
{
    Q_OBJECT

public:
    NETServer(QObject *parent = 0);
    void setDeviceID(quint16 deviceID);
    quint16 m_deviceID;

protected:
    void incomingConnection(int socketDescriptor);

private:
    QObject *m_parent;
    NETThread *thread;
};
//! [0]

#endif
